package ly.sjun.design.abstract_factory_pattern.food;

import ly.sjun.design.abstract_factory_pattern.food_interface.Fruit;

/**
 * @ClassName: Pear
 * @Author: ly
 * @Date: 2023/1/4-11:03
 * @Description 梨子
 **/
public class Pear implements Fruit {


    @Override
    public Float getSweetness() {
        return 0.5f;
    }

    @Override
    public String getName() {
        return "梨子";
    }
}
